﻿
using HalconDotNet;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using VisionModule;

namespace Demo
{
    public partial class MultiFit : Form
    {
        public MultiFit()
        {
            InitializeComponent();
            foreach (PictureBox item in this.tableLayoutPanel1.Controls)
            {
                ImageProcess.Instance.OpenWindow(item.Width, item.Height, item.Handle, item.Name);
            }
            this.Load += MultiFit_Load;
        }

        private void MultiFit_Load(object sender, EventArgs e)
        {

            //KSJCarmera camera = new KSJCarmera();
            //HObject image1 = camera.GrabImage(@"D:\TestImage\1.png");
            //HObject image2 = camera.GrabImage(@"D:\TestImage\2.png");
            //HObject image3 = camera.GrabImage(@"D:\TestImage\3.png");
            //HObject image4 = camera.GrabImage(@"D:\TestImage\5.png");
          
            //ImageProcess.Instance.ShowImage(image1, this.pic_Up1.Name);
            //ImageProcess.Instance.ShowImage(image2, this.pic_Up2.Name);
            //ImageProcess.Instance.ShowImage(image3, this.pic_Down.Name);
            //ImageProcess.Instance.ShowImage(image4, this.pic_Other.Name);
        }
    }
}
